package com.ktgj.service.service.impl;

import java.util.List;

import com.ktgj.service.domain.KtserviceOrderChannelViphall;
import com.ktgj.service.mapper.KtserviceOrderChannelViphallMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.service.IKtserviceOrderChannelService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-28
 */
@Service
public class KtserviceOrderChannelServiceImpl implements IKtserviceOrderChannelService 
{
    @Autowired
    private KtserviceOrderChannelViphallMapper ktserviceOrderChannelMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public KtserviceOrderChannelViphall selectKtserviceOrderChannelById(Long id)
    {
        return ktserviceOrderChannelMapper.selectKtserviceOrderChannelViphallById(id);
    }

    /**
     * 根据订单ID返回所有关联订单信息
     * @param orderId
     * @return
     */
    @Override
    public List<KtserviceOrderChannelViphall> selectServiceOrderByOrderId(Long orderId)
    {
        return ktserviceOrderChannelMapper.selectServiceOrderByOrderId(orderId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param ktserviceOrderChannel 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<KtserviceOrderChannelViphall> selectKtserviceOrderChannelList(KtserviceOrderChannelViphall ktserviceOrderChannel)
    {
        return ktserviceOrderChannelMapper.selectKtserviceOrderChannelViphallList(ktserviceOrderChannel);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param ktserviceOrderChannel 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertKtserviceOrderChannel(KtserviceOrderChannelViphall ktserviceOrderChannel)
    {
        return ktserviceOrderChannelMapper.insertKtserviceOrderChannelViphall(ktserviceOrderChannel);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param ktserviceOrderChannel 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateKtserviceOrderChannel(KtserviceOrderChannelViphall ktserviceOrderChannel)
    {
        return ktserviceOrderChannelMapper.updateKtserviceOrderChannelViphall(ktserviceOrderChannel);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param ktserviceOrderChannel 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateKtserviceOrderChannels(KtserviceOrderChannelViphall ktserviceOrderChannel)
    {
        return ktserviceOrderChannelMapper.updateKtserviceOrderChannelViphall(ktserviceOrderChannel);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteKtserviceOrderChannelByIds(Long[] ids)
    {
        return ktserviceOrderChannelMapper.deleteKtserviceOrderChannelViphallByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteKtserviceOrderChannelById(Long id)
    {
        return ktserviceOrderChannelMapper.deleteKtserviceOrderChannelViphallById(id);
    }
}
